package com.im.partchat.ui.activity.more;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatSpinner;
import android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;

import com.im.partchat.R;
import com.im.partchat.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class MyNoteActivity extends BaseActivity {


    @BindView(R.id.image1)
    ImageView image1;
    @BindView(R.id.image2)
    ImageView image2;
    @BindView(R.id.image3)
    ImageView image3;
    @BindView(R.id.spanner)
    AppCompatSpinner spanner;
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_my_note;
    }

    @Override
    protected void initView(@Nullable Bundle savedInstanceState) {
        super.initView(savedInstanceState);
        toolbar.setTitleTextColor(getResources().getColor(R.color.white));
        spanner.setDropDownVerticalOffset(120);
        spanner.setGravity(Gravity.RIGHT);
        spanner.setSelection(0);
        spanner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                showToast(position + "");
            }

            @Override
            public void onNothingSelected(AdapterView<?> parent) {

            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onLoadDataSuccess(Object o, String flag) {

    }


    @OnClick({R.id.image1, R.id.image2, R.id.image3})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.image1:
                break;
            case R.id.image2:
                break;
            case R.id.image3:
                break;
        }
    }
}
